import {createBrowserRouter} from 'react-router-dom'
import Main from '../pages/main'
import Login from '../pages/login'
import User from '../pages/user'
import Home from '../pages/home'

 
const router = createBrowserRouter([
    {
        path: '/',
        Component: Main,
        children: [
            {
                path: '/home',
                Component: Home
            },{
                path: '/user',
                Component:User
            },
            
        ]
    },
    {
        path: '/login',
        Component: Login
    }
])
export default router